import json
import re

with open('result.json', 'r') as f:
    items = json.load(f)

sort = []
for item in items:
    price = item['price']
    jsl = item['jsl']
    jsl = int(re.sub("\D", "", jsl))
    url = item['url']

    b = float(price) / jsl
    # if float(price) / jsl > 0.5:
    #     continue

    if price > 1000:
        continue
    sort.append((jsl,b, price, url))

sort.sort()
for item in sort:



    print(item)


